﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Web.Services;
using System.Web.Services.Protocols;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FIM_MAS_Contacts : System.Web.Services.WebService
    {
        IBLL_FIM_MAS_Contacts bll = new B_FIM_MAS_Contacts();

        [WebMethod]
        public List<M_FIM_MAS_Contacts> GetFull()
        {
            return (List<M_FIM_MAS_Contacts>)bll.GetFull();
        }

        [WebMethod]
        public List<M_FIM_MAS_Contacts> GetList(string filter)
        {
            return (List<M_FIM_MAS_Contacts>)bll.GetList(filter);
        }

        [WebMethod]
        public List<M_FIM_MAS_Contacts> GetListOffer(string icm_bid_seq,string contact_seq , string filter)
        {
            return (List<M_FIM_MAS_Contacts>)bll.GetListOffer(icm_bid_seq, contact_seq, filter);
        }

        [WebMethod]
        public M_FIM_MAS_Contacts GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        [WebMethod]
        public void Insert(M_FIM_MAS_Contacts info)
        {
            bll.Insert(info);
        }

        [WebMethod]
        public void Update(M_FIM_MAS_Contacts info)
        {
            bll.Update(info);
        }

        [WebMethod]
        public void Delete(M_FIM_MAS_Contacts info)
        {
            bll.Delete(info);
        }

        private void InitializeComponent()
        {

        }
    }
}
